package test;

import mvc.ResponseBody;
import mvc.ResponseView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UserController {
    @ResponseBody("/log.do")
    public String login(HttpServletRequest req, HttpServletResponse resp){
        return "登录成功";
    }


    @ResponseView("/reg.do")
    public String reg(HttpServletRequest req, HttpServletResponse resp){
        return "success.jsp";
    }


    @ResponseView("/xxx.do")
    public String haha(HttpServletRequest req, HttpServletResponse resp){
        return "index.jsp";
    }

}
